
<style type="text/css">
    .isshow{display: none}
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#edit" data-toggle="tab">消息推送</a></li>
        </ul>
    </div>

    <div class="panel-body" style="padding-bottom: 0;">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane active" id="edit">
                <div class="widget-body no-padding">
                    <form id="edit-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                        {:token()}
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th width="15%">{:__('Title')}</th>
                                <th width="85%">{:__('Value')}</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>{:__('Type')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="radio">
                                                {foreach name="typeList" item="vo"}
                                                <label for="row[type]-{$key}" style="width: 20%;">
                                                    <input id="row[type]-{$key}" {in name="key" value="text"}class="type" checked="checked"{/in} name="row[type]" type="radio" value="{$key}"> {$vo}
                                                </label>
                                                {/foreach}
                                            </div>
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="text isshow">
                                <td>{:__('回复内容')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <textarea id="c-content" style="height: 200px;" data-rule="required" aria-invalid="true" class="form-control" name="row[content]"></textarea>
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="image isshow">
                                <td>{:__('选择关键词')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-image" data-rule="required" data-source="weixin/reply/keyword/index" data-params='{"custom[type]":"image"}' data-field="key" class="form-control selectpage sp_input" name="row[image]" type="text" value="" autocomplete="off">
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="news isshow">
                                <td>{:__('选择图文')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-news" data-rule="required" data-source="weixin/reply/keyword/index" data-params='{"custom[type]":"news"}' data-field="key" class="form-control selectpage sp_input" name="row[news]" type="text" value="" autocomplete="off">
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="voice isshow">
                                <td>{:__('选择音频')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-voice" data-rule="required" data-source="weixin/reply/keyword/index" data-params='{"custom[type]":"voice"}' data-field="key" class="form-control selectpage sp_input" name="row[voice]" type="text" value="" autocomplete="off">
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <button type="submit" class="btn btn-success btn-embossed">{:__('发送')}</button>
                                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                </td>
                                <td></td>
                                <td></td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
